package org.hzero.exam.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import springfox.documentation.service.Tag;
import springfox.documentation.spring.web.plugins.Docket;

/**
 * Swagger Api 描述配置
 */
@Configuration
public class SwaggerTags {

    public static final String EXAMPLE = "Example";
    public static final String COMPANY = "COMPANY";
    public static final String CUSTOMER = "CUSTOMER";
    public static final String ITEM = "ITEM";
    public static final String HEADER = "HEADER";
    public static final String LINE = "LINE";
    public static final String EXPORT = "EXPORT";
    public static final String SCHEDULER = "SCHEDULER";
    public static final String FILE = "FILE";
    @Autowired
    public SwaggerTags(Docket docket) {
        docket.tags(
                new Tag(EXAMPLE, "EXAMPLE 案例"),
        new Tag(COMPANY, "公司信息"),
        new Tag(CUSTOMER, "客户信息"),
        new Tag(ITEM, "物料信息"),
        new Tag(HEADER, "订单头信息"),
        new Tag(LINE, "订单行信息"),
        new Tag(EXPORT, "数据导出服务"),
        new Tag(SCHEDULER, "调度服务"),
                new Tag(FILE,"报表模板上传")
        );
    }
}
